<script language="javascript">
var url = "https://services.supermapcloud.com/wxweb/weixin";
alert(url);
/*
var websocket = new WebSocket(url);
websocket.onopen = function (evnt) {
	alert("onopen");
	websocket.send("Message to send");
	alert("sent");
};
websocket.onmessage = function (evnt) {
	alert("data=" + evnt.data);
};
websocket.onerror = function (e) {
	for (var p in e) {
		alert("onerror:" + p + "," + e[p]);
	}
};
websocket.onclose = function (evnt) {
	alert("onclose");
};

function s(){
	var t = "abc";
	websocket.send(t);
}
*/
</script>
<input type=button value="click" onclick=s()>